home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
352_01.zip
/
STRPPPAD.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-10
|
448b
|
21 lines
// STRPPPAD.CPP - contains String::strpad()
// this is a 'slave routine' called by String::pad().
//
// routine pads string with extra blanks out to length set by n
//
#include <stdlib.h>
#include <string.h>
#include "dblib.h"
void String::strpad ( )
// pad string with blanks if needed.
{
int sn=n;
char *ss=s;
if ( ss==NULL ) return;
for ( int i=strlen(ss); i<sn; ++i ) ss[i] =' ';
} // end String::strpad()